package com.zsrt.java.day20170113.lh.daily.ch05;
/**
 * 适配器  媒人
 * 1.实现电脑一样的接口
 * 2.和键盘区组合
 * 
 * 
 * @author My
 *
 */
public class Adapter implements USB{
	
	private KeyBoard key;
	
	public Adapter(KeyBoard key){
		this.key=key;
	}
	
	

	@Override
	public void connection() {
		key.print();
		m.print();
	}
	
	private Mon  m;

	public Adapter(KeyBoard key, Mon m) {
		
		this.key = key;
		this.m = m;
	}
	
	
	

	
	
	
}
